package net.gazhi.delonix.rbac.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 实体删除校验规则
 * 
 * @author lzb
 *
 */
@Entity(name = DX_TABLE.dx_del_check_rule)
public class DelCheckRule {

	@Id
	private int id;

	@Column(name = "entry_name")
	private String entryName;

	@Column(name = "property_name")
	private String propertyName;

	@Column(name = "related_table")
	private String relatedTable;

	@Column(name = "related_column")
	private String relatedColumn;

	@Column(name = "alert_msg")
	private String alertMsg;

	public DelCheckRule() {
	}

	public DelCheckRule(String entryName, String propertyName, String relatedTable, String relatedColumn, String alertMsg) {
		this.entryName = entryName;
		this.propertyName = propertyName;
		this.relatedTable = relatedTable;
		this.relatedColumn = relatedColumn;
		this.alertMsg = alertMsg;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getEntryName() {
		return entryName;
	}

	public void setEntryName(String entryName) {
		this.entryName = entryName;
	}

	public String getPropertyName() {
		return propertyName;
	}

	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}

	public String getRelatedTable() {
		return relatedTable;
	}

	public void setRelatedTable(String relatedTable) {
		this.relatedTable = relatedTable;
	}

	public String getRelatedColumn() {
		return relatedColumn;
	}

	public void setRelatedColumn(String relatedColumn) {
		this.relatedColumn = relatedColumn;
	}

	public String getAlertMsg() {
		return alertMsg;
	}

	public void setAlertMsg(String alertMsg) {
		this.alertMsg = alertMsg;
	}

}
